﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace PCMSofCC.BLL
{
    public static class DateHelper
    {
        public static DateTime GetMondayOfThisWeek(DateTime today)
        {
            int dayOfWeek = Convert.ToInt32(today.DayOfWeek.ToString("d"));
            if (dayOfWeek == 0) dayOfWeek = 7;
            return today.AddDays(1-dayOfWeek);
        }
    }
}
